<% row = cycle("even", "odd") %>
<tr class="<%= row %>">
  <td><%= category_group.presentation %></td>
  <td>
    <% permitted_to? :delete, :admin_category_groups do %>
      <%= button_to_delete "Smazat skukpinu kategorií", admin_category_group_path(category_group) if category_group.deletable? %>
    <% end %>
    <% permitted_to? :edit, :admin_category_groups do %>
      <%= button_to_edit "Editovat skupinu kategorií", edit_admin_category_group_path(category_group) %>
    <% end %>
  </td>
</tr>